package com.nbrc.repo;

import org.springframework.data.jpa.repository.Query;
import org.springframework.stereotype.Repository;

import com.nbrc.model.User;
@Repository("userRepository")
public interface UserRepository extends  IDAO<User>{

	@Query("from User u where u.name=?1 and u.passwd=?2")
	User login(String username, String userpassword);

}
